package com.youlai.boot.sportPlan.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.sportPlan.model.entity.SportPlan;
import com.youlai.boot.sportPlan.model.form.SportPlanForm;

/**
 * 用户饮食计划对象转换器
 *
 * @author cuisheng
 * @since 2025-03-31 13:11
 */
@Mapper(componentModel = "spring")
public interface SportPlanConverter{

    SportPlanForm toForm(SportPlan entity);

    SportPlan toEntity(SportPlanForm formData);
}